﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Test
{
    public class MovieProxy : Movie
    {
        private MoveIntercept _interceptor = new MoveIntercept();
        private Movie _beproxy = new Movie();
        public override void Test()
        {
            object[] parameters = new object[0];
            this._interceptor.Before(this, "Test", parameters);
            DateTime start = DateTime.Now;
            base.Test();
            DateTime end = DateTime.Now;
            object result = null;
            this._interceptor.After(this, "Test", result, start, end);
        }
        public override T Test1<T>()
        {
            object[] parameters = new object[0];
            this._interceptor.Before(this, "Test1", parameters);
            DateTime start = DateTime.Now;
            object obj = base.Test1<T>();
            DateTime end = DateTime.Now;
            this._interceptor.After(this, "Test1", obj,start,end);
            return (T)((object)obj);
        }
    }
}
